import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import "./assets/font/iconfont.css"
import "./assets/css/global.less"
import * as echarts from 'echarts';
// import 'echarts/theme/chalk.js';
import axios from 'axios';
import socketservice from "@/utils/socket_service";
socketservice.Instance.connect()
Vue.prototype.$socket = socketservice.Instance;

axios.defaults.baseURL = 'http://127.0.0.1:8888/api'

Vue.config.productionTip = false;
// 把echarts挂载到 Vue原型上，以便在全局访问
Vue.prototype.$echarts = echarts
Vue.prototype.$http = axios

new Vue({
	router,
	store,
	render: h => h(App),
}).$mount('#app')
